<?php


class index_action extends zhuayi
{

	/* 构造函数 */
	function __construct()
	{
		
	}
	
	function index()
	{
		//header('Location: /member/');
		$app = new oauth('203871','9816ab3f1ceee07e8bcaad014326c38a');
		
		$fileds =$app->moren();
		
		$token = $app->token('http://openapi.qzone.qq.com/oauth/qzoneoauth_request_token');
		
		$url = 'http://openapi.qzone.qq.com/oauth/qzoneoauth_authorize?oauth_consumer_key=203871&oauth_token='.$token['oauth_token'].'&oauth_callback=http://www.zcms.cc/info/';
		
		//$this->test('<a href="'.$url.'">登录</a>');

		//exit;
		require $this->load_tpl('index_index');
	}

}


?>